package com.cuiyun97.mapper;

import com.cuiyun97.domain.po.SetJwt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SetJwtMapper {

    /**
     * 查询jwt配置最后一条记录
     *
     * @return
     */
    @Select("select * from set_jwt order by id desc limit 1")
    SetJwt getLastOne();

    /**
     * 更新
     *
     * @param lastOne
     */
    void updateLastOne(SetJwt lastOne);
}
